API Documentation
ProgramManager.h
1 // ProgramManager.h
3 //
5 
6 namespace nkGraphics
7 {
13  class DLL_GRAPHICS_EXPORT ProgramManager final : public nkCommon::SingletonClass<ProgramManager>
14  {
15  public :
16 
21 
22  // Programs
29  Program* createOrRetrieve (const std::string_view& name) ;
36  Program* get (const std::string_view& name) ;
45  Program* getByIndex (unsigned int index) ;
52  void rename (const std::string_view& oldName, const std::string_view& newName) ;
58  void erase (const std::string_view& name) ;
59 
60  // Semantics
67  unsigned int getIdForInputSemantics (Program* program) ;
74  void addCustomSemanticIndex (const std::string_view& semanticName, int assignedIndex) ;
79  int getCustomSemanticIndex (const std::string_view& semanticName) ;
80  } ;
81 }
nkGraphics::ProgramManager::erase
void erase(const std::string_view &name)
nkGraphics::Program
Holds all informations related to GPU programs, and manages their compilation.
Definition: Program.h:12
nkGraphics::ProgramManager::getCustomSemanticIndex
int getCustomSemanticIndex(const std::string_view &semanticName)
nkGraphics::ProgramManager::get
Program * get(const std::string_view &name)
nkGraphics::ProgramManager::getByIndex
Program * getByIndex(unsigned int index)
nkGraphics::ProgramManager::~ProgramManager
~ProgramManager()
nkGraphics::ProgramManager::getIdForInputSemantics
unsigned int getIdForInputSemantics(Program *program)
nkGraphics::ProgramManager
Manages the sahders available in the component.
Definition: ProgramManager.h:14
nkGraphics::ProgramManager::rename
void rename(const std::string_view &oldName, const std::string_view &newName)
nkGraphics::ProgramManager::createOrRetrieve
Program * createOrRetrieve(const std::string_view &name)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7
nkGraphics::ProgramManager::addCustomSemanticIndex
void addCustomSemanticIndex(const std::string_view &semanticName, int assignedIndex)